package com.sec.android.app.myfiles.module.manager;

import com.sec.android.app.myfiles.info.AppFeatures;
import com.sec.android.app.myfiles.module.ModuleManager;
import com.sec.android.app.myfiles.module.abstraction.AbsModuleManager;

public class PhoneModuleManager extends AbsModuleManager {
    @Override
    protected int _getModuleList() {
        int ret = ModuleManager.ALL_MODULE;

        if (!AppFeatures.SUPPORT_KNOX_DESKTOP) {
            ret &= ~ModuleManager.TABLET_MODULE;
        }

        if (AppFeatures.NO_SUPPORT_CLOUD) {
            ret &= ~ModuleManager.CLOUD_FILE_MODULE;
        }

        return ret;
    }

    @Override
    protected boolean isSupportMode() {
        return !AppFeatures.isTablet();
    }

}
